<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>供应商类型管理</title>
<meta name="decorator" content="default"/>
<script src="/jeesite/static/jquery-validation/1.11.1/localization/messages_zh.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$("#inputForm").validate();
	});
</script>
</head>
<body class="fixed-top">
	<div class="container" style="width: 100%;">
		<div style="margin: 20px; border: 1px solid #c8d1d5;">
			<div style="padding: 13px; background-color: #f4f4f4; border-bottom: 1px solid #c8d1d5;">
				<h4>
					<i class="icon-globe"></i> 供应商类型${not empty supplierType.id?'修改':'添加'}
				</h4>
			</div>
			<div style="margin: 17px;">
				<form:form id="inputForm" modelAttribute="supplierType" action="${ctx}/pro/supplierType/save" method="post" class="form-horizontal">
					<form:hidden path="id"/>
					<sys:message content="${message}"/>	
					<div class="control-group">
						<label class="control-label">供应商类型编号：</label>
						<div class="controls">
							<form:input path="codeNum" readonly="true" placeholder="自动生成，可不填"/>
						</div>
					</div>	
					<div class="control-group">
						<label class="control-label">供应商类型：</label>
						<div class="controls">
							<form:input path="name" htmlEscape="false" maxlength="64"  class="required"/>
							<span class="help-inline"><font color="red">*</font></span>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">备注信息：</label>
						<div class="controls">
							<form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="255" class="input-xxlarge "/>
						</div>
					</div>
					<div class="form-actions">
						<shiro:hasPermission name="pro:supplierType:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
						<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
					</div>
				</form:form>
			</div>
		</div>
	</div>
</body>
</body>
</html>